package com.hdoit.ares.web.advertisement.modelconfig;

import com.hdoit.ares.web.advertisement.providers.OpenStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class AdvertisementLocationSearchConfig extends ModelMetadataAttributeConfiguration{
	 public AdvertisementLocationSearchConfig(){
	        this.setProperty("name")
	            .hasAttribute(new DisplayNameAttribute("广告位名称"));

	        
	        this.setProperty("isOpen")
	            .hasAttribute(new DisplayNameAttribute("是否公开广告位"))
	            .hasAttribute(new DropDownListAttribute(new OpenStateProvider("senior")));

	        
	        this.setProperty("startTime")
	            .hasAttribute(new DisplayNameAttribute("创建时间从"))
	            .hasAttribute(new DateTimeAttribute());
	        
	        this.setProperty("endTime")
	        	.hasAttribute(new DisplayNameAttribute("到"))
	        	.hasAttribute(new DateTimeAttribute());

	    }
}
